<div class="comments-list" id="comment_widgets" style="top:0px">
<{foreach from=$data.comment item=item key=key name=clist}>
      <div class="comment-item" >
        <div class="goods-pic"><a target="_blank" href="<{$item.goodsLink}>"><img src="<{$data.theme_dir}>/images/i/transparent.gif" data-src="<{$item.goodsPic|storager:'S'}>" data-img-zoom="true" alt="<{$item.goodsName}>" /></a></div>
        <div class="goods-info">
            <{if $setting.showauthor!="off"}><div class="author"><{$item.commentAuthor|default:'匿名'}></div><{/if}>
            <div class="p-detail"><a href="<{$item.goodsLink}>" title="<{$item.comment}>" target="_blank"><{$item.comment|cut:$setting.maxtext}></a>
            <{if $setting.showtime=="on"}><span class="pubtime"><{$item.commentTime|cdate:'FDATE_STIM'}></span><{/if}>
            </div>
        </div></div>
      <{/foreach}>
</div>
<script type="text/javascript">
window.addEvent('domready',function() {
	var Mcommtr = $('comment_widgets').getElements('.comment-item');	
	if(Mcommtr.length < 1) return;
	var i = Mcommtr.length - 1;
	var Mslidecomm = function() {
		Mcommtr[i].setStyles({
			'height': 0 + 'px',
			'opacity':0
		});
		Mcommtr[i].inject($('comment_widgets'),'top');
		Mcommtr[i].set('morph',{duration:500,transition:'sine:out'}).morph({'height':'62px',opacity:1})
		i--;
		if (i == -1) i = Mcommtr.length - 1;
	}
	setInterval(Mslidecomm, 4000);
})
</script>